package com.session01;

public class Dog extends Animal implements IPlayable, IWorkable {
    private String name;        //名字
    private String masterPhone; //主人电话

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMasterPhone() {
        return masterPhone;
    }

    public void setMasterPhone(String masterPhone) {
        this.masterPhone = masterPhone;
    }

    public Dog(String name, ColorEnum color, String kind, Boolean hair, Boolean jueyu, GenderEnum gender, String masterPhone) {
        super(color, kind, hair, jueyu, gender);
        this.name = name;
        this.masterPhone = masterPhone;
    }

    @Override
    public void eat(String food) {
        System.out.println("小狗都喜欢吃" + food);
    }

    @Override
    public void play() {
        System.out.println("带我出去玩飞盘");
    }

    @Override
    public void walk() {
        System.out.println("带我出去溜圈");
    }
}
